package sm.server.serverlist;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import sm.utils.ServerUtils;

public class ServerList {
	private static final Map<String,String> _ip = new HashMap<String,String>();
	
	public static void setIp(String name, String ip){
		ServerList._ip.put(name, ip);
	}
	public static String getIp(String name){
		return ServerList._ip.get(name);
	}
	private static final String[] _dwsBList= new String[]{
		"51462231_dws_1",
		"51462231_dws_2",
		"51462231_dws_3"
	};
	private static final String[] _dwsCList= new String[]{
		"51462231_dws_c1",
		"51462231_dws_c2"
	};
	private static final String _adminServer= new String("51462231_adminser");
	public static String[] getBList(){
		return ServerList._dwsBList;
	}
	public static String[] getCList(){
		return ServerList._dwsCList;
	}
	public static String getAdminSer(){
		return ServerList._adminServer;
	}
	public static String[] getASList(){
		return ServerUtils.congeString(ServerList._dwsBList ,ServerList._dwsCList);
	}
}
